package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.HandoverAudit;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.HandoverAuditVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;

/**
 * 交工审计表 Mapper接口
 *
 * @author admin
 * @since 2025-08-15
 */
@Mapper
public interface HandoverAuditMapper extends BaseMapper<HandoverAudit> {
    /**
     * 查询交工审计表
     *
     * @return
     */
    List<HandoverAuditVO> selectHandoverAuditList(@Param("query") HandoverAuditVO vo);

    IPage<HandoverAuditVO> pageList(@Param("page") Page<HandoverAuditVO> page, @Param("query") HandoverAuditVO vo);

    List<HandoverAuditVO> getDataForExport(@Param("query") HandoverAuditVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<HandoverAuditVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);

    int countUnionList(@Param("query") HandoverAuditVO query);

    List<HandoverAuditVO> selectUnionList(@Param("query") HandoverAuditVO query, @Param("offset") int offset, @Param("pageSize") int pageSize);
}
